﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional

namespace EFCore_Test.Migrations
{
    /// <inheritdoc />
    public partial class _2 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "Account",
                keyColumn: "AccountId",
                keyValue: new Guid("6edf424c-739b-4901-bf41-4b679e3ba637"));

            migrationBuilder.DeleteData(
                table: "Account",
                keyColumn: "AccountId",
                keyValue: new Guid("b1f2b137-33d1-438e-b7aa-6db5a1d12983"));

            migrationBuilder.AddColumn<bool>(
                name: "Deleted",
                table: "Account",
                type: "bit",
                nullable: false,
                defaultValue: false);

            migrationBuilder.InsertData(
                table: "Account",
                columns: new[] { "AccountId", "Address", "Age", "Deleted", "Name" },
                values: new object[,]
                {
                    { new Guid("0c49b951-6173-4b09-b085-16f22a4bcd60"), "", 18, false, "2" },
                    { new Guid("c9d3df6f-b468-4b3e-bd29-2be24d2d01e9"), "", 18, false, "1" }
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "Account",
                keyColumn: "AccountId",
                keyValue: new Guid("0c49b951-6173-4b09-b085-16f22a4bcd60"));

            migrationBuilder.DeleteData(
                table: "Account",
                keyColumn: "AccountId",
                keyValue: new Guid("c9d3df6f-b468-4b3e-bd29-2be24d2d01e9"));

            migrationBuilder.DropColumn(
                name: "Deleted",
                table: "Account");

            migrationBuilder.InsertData(
                table: "Account",
                columns: new[] { "AccountId", "Address", "Age", "Name" },
                values: new object[,]
                {
                    { new Guid("6edf424c-739b-4901-bf41-4b679e3ba637"), "", 18, "2" },
                    { new Guid("b1f2b137-33d1-438e-b7aa-6db5a1d12983"), "", 18, "1" }
                });
        }
    }
}
